% ternary demo6
% ----------------------
% @author : slandarer
% 公众号  : slandarer随笔
% 知乎    : slandarer

figure('Name','ternary demo5','Units','normalized','Position',[.05,.2,.42,.56])

% 初始化三元相图(Init ternary plot)
STA=STernary();


A=rand(1,20);
B=rand(1,20);
C=rand(1,20);

A=[A;A*0+mean(A);A.*nan];
B=[B;B*0+mean(B);B.*nan];
C=[C;C*0+mean(C);C.*nan];
% 绘制折线图(Draw Line)
STA.SScatter(A,B,C,40,'filled','CData',[0,0,0]);

% 绘制散点图(Draw scatter plot)
STA.SPlot(A(:),B(:),C(:),'LineWidth',1,'Color',[0,0,0]);

